﻿using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TemplatesPrint.Views
{
    public partial class FrmCloseTip : UIEditForm
    {
        public FrmCloseTip()
        {
            InitializeComponent();
        }
        public  int closeType = 0;//0-取消  1-最小化  2-关闭

        private void uiButton1_Click(object sender, EventArgs e)
        {
            if (rbClose.Checked)
            {
                closeType = 2;
            }
            if (rbMin.Checked)
            {
                closeType = 1;
            }
            this.Close();
        }

        private void CheckedChanged(object sender, EventArgs e)
        {
            if (rbClose.Checked)
            {
                lblCloseTip.Visible = true;
            }
            else
            {
                lblCloseTip.Visible = false;
            }
        }
    }
}
